<!DOCTYPE html>
<!-- saved from url=(0087)https://ent.safe517.com/fdWebCompany/findView/publishContent.publishContent?newSearch=1 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>万达食品安全追溯系统</title>







<title>万达食品安全追溯系统</title>
<script src="./jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="./custome.js" type="text/javascript" charset="utf-8"></script>	
<script src="./jquery.form.js" type="text/javascript"></script>
<script src="./popup.js" type="text/javascript"></script>
<script src="./common(1).js" type="text/javascript">_csrf&b02b984c-40c2-4d40-bb4c-e2c946d9878a</script>	
<script src="./common1.js" type="text/javascript" charset="utf-8"></script>
<script src="./plupload.full.min.js" type="text/javascript"></script>	
<script src="./reAlert.js" type="text/javascript"></script>	
<link href="./common.css" rel="stylesheet" type="text/css">
<link href="./style.css" rel="stylesheet" type="text/css">
<!-- 图片查看 -->
<script src="./jquery-rotate-2.3.min.js" type="text/javascript"></script>
<script src="./jquery.ui.js" type="text/javascript"></script>
<link href="./foximg.css" rel="stylesheet" type="text/css">
<script src="./foximg.js" type="text/javascript" charset="utf-8"></script>
<!-- <script src="../js/bigimg.js" type="text/javascript" charset="utf-8"></script> -->

<script type="text/javascript">
	var fileServer = "https://image.safe517.com/fdWebFile";
	var imgFilePath="https://image.safe517.com/fdWebFile";
	var circulationType="CATERING";
	var circulationParam={empFile:"从业人员_V20170815.xlsx", outputBatchFile:"发货台账导入_V20170511.xlsx",inputBatchFile:"进货台账导入_V20170511.xlsx",inputMat:"采购品", inputMatFile:"采购品导入_V20170815.xlsx",outputMat:"产出品", outputMatFile:"产出品导入_V20151130.xlsx", menu:"10001,",adminMenu:"10001,10017,11701,11702,11703,"};
	var circulationJobs={jobs:"企业负责人,厨师长,门店经理,大堂经理,原材料检验人员,食品安全负责人,采购负责人,分餐人员,专间操作人员,餐饮具消毒人员,餐饮主管人员,厨师,仓库负责人,仓管人员,其他"};
	/* $('input').bind('input propertychange', function() {
		alert("111");
		$(this).val($(this).val().replace(/([';])+|(--)+/g,"").replace(/<[^>]+>/g,""));
	}); */
	
    //gloabal ajax
    $(document).ajaxComplete(function( event,request, settings ) {
    	if( request.status === 302  || request.status===403){
    		window.location = "..";
    	}
    });
	  //点击查看大图
   $(function(){
	   $('div[rel="img"]').foximg(); 
   })  
	var oldajax = $.ajax;
	$.ajax = function(options){
		if(!(options.headers)){
			options.headers={};
		}
		options.headers['X-CSRF-TOKEN'] = 'b02b984c-40c2-4d40-bb4c-e2c946d9878a';
		return oldajax(options);
	};

	
	
	
	
</script>
<link href="./lhgcalendar.css" rel="stylesheet"></head><body><div id="loading" style="position: absolute; top: 50%; left: 50%; margin: 0px auto; height: 300px; z-index: 888; display: none;"><img src="./loading.gif"></div>
   
<script src="./lhgcore.lhgcalendar.min.js" type="text/javascript"></script>
<script type="text/javascript">
var totalPage;
var totalNum;
var pageSize=20;
var titleHistory="";
var companyNameHistory="";
var publishDateHistory="";
var params = {"newSearch":"1"};
var pageNum=parseInt("1");

function search(pageNum){
	$(".paging_head").removeClass("disabled");
	$(".paging_head input").attr("disabled",false);
	$(".paging_perv").removeClass("disabled");
	$(".paging_perv input").attr("disabled",false);
	$(".paging_next").removeClass("disabled");
	$(".paging_next input").attr("disabled",false);
	$(".paging_trailer").removeClass("disabled");
	$(".paging_trailer input").attr("disabled",false);
	$("#loading").show();
	$.ajax({
	url: "../publishContent/queryPublishContent/"+pageNum+"/"+pageSize,
	type:"post",
    headers: { 
        'Accept': 'application/json',
        'Content-Type': 'application/json' 
    },
    dataType:'json',
	data:JSON.stringify(params),
	success:function(result) {
		if(result.status==0){
			page(result);
			var resultList=result.body.resultList;
			$("#body").children().remove();
			console.log(resultList);
			for(var i=0;i<resultList.length;i++){
				var num=i+1;
				var id=resultList[i].id;
				var title=isNullForTable(resultList[i].title);
				var companyName=isNullForTable(resultList[i].companyName);
				var publishDate=isNullForTable(resultList[i].publishDate);
                var isRead=resultList[i].isRead;
                if(nullFlag(isRead)){
                	title += '<i class="i_new">';
                	isRead = '<span class="red">未读</span>';
                }else{
                	isRead = '<span>已读</span>';
                }
                var $tr=$("<tr><td class='td_ser'>"+((pageNum-1)*pageSize+num)+"</td><td>"+title+"</td><td>"+companyName+"</td><td>"+publishDate+"</td><td class='td_ser'>"+isRead+"</td><td class='td_oper'><a href='../findView/publishContent.publishContentDetail?id="+ id+ "' class='btn_green'>查看</a></td>/tr>");

				$tr.data("id", id);
				if (i % 2 == 0) {
					$tr.addClass("even");
				}
				$("#body").append($tr);
			};
			$("#totalPage em").text(totalPage);
			$("#paging_num").val(pageNum);
			
			if(pageNum==1){
				$(".paging_head").addClass("disabled");
				$(".paging_head input").attr("disabled",true);
				$(".paging_perv").addClass("disabled");
				$(".paging_perv input").attr("disabled",true);
			}
			if(pageNum==totalPage){
				$(".paging_next").addClass("disabled");
				$(".paging_next input").attr("disabled",true);
				$(".paging_trailer").addClass("disabled");
				$(".paging_trailer input").attr("disabled",true);
			}
			$("#loading").hide();
		};
	},
	error : function(text) {
		console.log(text.message);
	}
});
	}
	$(function() {
		$('#publishDate').calendar();
		$("#companyName").val(companyNameHistory);
		$("#publishDate").val(publishDateHistory);
		$("#title").val(titleHistory);
		params.orgName=companyNameHistory;
		params.publishDate=publishDateHistory;  
		params.title=titleHistory;
		
		search(pageNum);

		//点击上一页查询
		$(".paging_perv").click(function() {
			if (pageNum == 1) {
				params.newSearch="1";
				search(pageNum);
			} else {
				$(".paging_box a").removeClass("default");
				pageNum += -1;
				$("#page" + pageNum).addClass("default");
				params.newSearch="1";

				search(pageNum);
			}
		});
		//点击下一页查询
		$(".paging_next").click(function() {
			if (pageNum == totalPage) {
				params.newSearch="1";
				
				search(pageNum);
			} else {
				$(".paging_box a").removeClass("default");
				pageNum += 1;
				$("#page" + pageNum).addClass("default");
				params.newSearch="1";
				search(pageNum);
			}
		});
		//点击首页查询数据
		$(".paging_head").click(function() {
			pageNum = 1;
			params.newSearch="1";
			search(pageNum);
		});
		//点击尾页查询数据
		$(".paging_trailer").click(function() {
			pageNum = totalPage;
			params.newSearch="1";
			search(pageNum);
		});
		//点击确定查询数据
		$("#page_btn").click(function(){
			var pageNo=$("#paging_num").val().trim();
			if(isNaN(pageNo)||pageNo==null||pageNo==""){
				return;
			}else{
				pageNum=parseInt($("#paging_num").val().trim());
				if(pageNum<1){
					pageNum=1;
					params.newSearch="1";
					search(pageNum);
				}else  if(pageNum>totalPage){
					pageNum=totalPage;
					params.newSearch="1";
					search(pageNum);
				}else{
					params.newSearch="1";
					search(pageNum);
				}
			}
		});

		//点击查询按钮查询数据
		$(".btn_query").click(function() {
			var companyName2 = $("#companyName").val().trim();
			var publishDate2 = $("#publishDate").val().trim();
			var title2 = $("#title").val().trim();
			params.publishDate = publishDate2;
			params.orgName = companyName2;
			params.title = title2;
			pageNum = 1;
			params.newSearch="1";
			search(pageNum);

		});
		//回车事件
		$(function() {
			document.onkeydown = function(e) {
				var ev = document.all ? window.event : e;
				if (ev.keyCode == 13) {

					$(".btn_query").click();

				};
			};
		});
	});
</script>


	<div class="main_box">
		<div id="loading" style="position: absolute; top: 50%; left: 50%; margin: 0 auto; height: 300px; z-index: 888; display: none;">
			<img src="./loading.gif">
		</div>
		<div class="main_con">
			<h3 class="process_title">
				<span>当前位置: </span><a href="https://ent.safe517.com/fdWebCompany/findView/publishContent.publishContent?newSearch=1#">通知公告</a>
			</h3>
			<div class="query">
				<span><em>标题：</em><input type="text" class="query_input" id="title" value="" placeholder="请输入标题"></span>
				<span><em>发布日期：</em><input type="text" class="input_date" id="publishDate" value="" placeholder="请选择发布日期" readonly="readonly"></span>
				<span><em>发布单位：</em><input type="text" class="query_input" id="companyName" value="" placeholder="请输入发布单位"></span> <input type="button" class="btn_query" value="查询">
			</div>
			<div class="table_box">
				<div class="table_box">
					<table class="table_list" style="min-width: 800px;">
						<thead>
							<tr>
								<th style="min-width: 30px">序号</th>
								<th style="min-width: 400px">通知公告标题</th>
								<th style="min-width: 250px">发布单位</th>
								<th style="min-width: 150px">发布日期</th>
								<th style="min-width: 40px">状态</th>
								<th style="min-width: 40px">操作</th>
							</tr>
						</thead>
						<tbody id="body">
						<tr class="even"><td class="td_ser">1</td><td>上海市食品安全信息追溯管理办法</td><td>上海市食药监管局</td><td>2015/10/01</td><td class="td_ser"><span>已读</span></td><td class="td_oper"><a href="https://ent.safe517.com/fdWebCompany/findView/publishContent.publishContentDetail?id=1" class="btn_green">查看</a></td></tr></tbody>
					</table>
					<p class="paging_box">
                   <span class="paging_head disabled"><input type="button" value="首页" style="padding:3px 5px" disabled="disabled"></span>
                   <span class="paging_perv disabled"><input type="button" value="&lt;&lt; 上一页" id="pre_page" disabled="disabled"></span><a href="https://ent.safe517.com/fdWebCompany/findView/publishContent.publishContent?newSearch=1#" id="page1" class="default">1</a>
                   <span class="paging_next disabled"><input type="button" value="下一页 &gt;&gt;" id="next_page" disabled="disabled"></span>
                   <span class="paging_trailer disabled"><input type="button" value="尾页" style="padding:3px 5px" disabled="disabled"></span>
                   <span class="num_text" id="totalPage">共<em>1</em>页</span><span class="num_text page_record">共<em>1</em>条记录</span>  
						 <span class="num_text">跳转 <input type="text" id="paging_num" value="" style="width: 20px; height: 20px;" onkeyup="javascript:this.value=this.value.replace(/\D/g,&#39;&#39;)" maxlength="6"></span> <span id="page_btn">
							<input class="paging_btn" id="page_btn" type="button" value="确定"></span>
					</p>
					<div class="clear"></div>
				</div>
			</div>
		</div>

</div></body></html>